<?php


/**
 * 获取当前时间戳
 * @param array OR object-array
 */
if (!function_exists('_gettime')) {
    function _gettime()
    {
        $time = time();
        return $time;
    }
}
/**
 * 把时间戳转为字符串
 */
if (!function_exists('_gettimestr')) {
    function _gettimestr($time, $format)
    {
        $time = date($format, $time);
        return $time;
    }
}

